// 通过interface定义索引类型
interface IndexLanguage {
    [index: number]: string
}

const frontLanguage: IndexLanguage = {
    0: 'HTML',
    1: 'CSS',
    2: 'Javascript',
    3: 'Vue',
    4: 'dd'
}


interface ILanguageYear {
    [name: string]: number
}

const languageYear: ILanguageYear = {
    'JavsScript': 1234,
    'JavsScript2': 12345,
    'JavsScript4': 12345,
}